package com.lunevich.demo.common;

import com.lunevich.demo.helpers.DownloadManager;

import android.app.Application;

public class CustomApplication extends Application {
	
	private DownloadManager mImagedownloader;
	
	@Override
	public void onCreate() {
		mImagedownloader = new DownloadManager();
	}
	
	@Override
	public Object getSystemService(String name) {
		if (name.equals(DownloadManager.IMAGE_DOWNLOADER)) {
			return mImagedownloader;
		}
		return super.getSystemService(name);
	}
}